<template>
    <div style="background-color: antiquewhite;width: 600px; margin: auto;">
        <h2>子组件</h2>
        <slot name="btn">默认内容</slot>
        <slot name="msg">默认内容</slot>
        <slot name="img" :scope="img"></slot>
      
        
    </div>
</template>

<script>
export default {
    data() {
        return {
            img:require('../../assets/logo.png')
        }
    },
}
</script>